package com.firewolf.springboot.main;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;

import com.firewolf.springboot.utils.SpringUtil2;

/**
 * 方法二：使用SpringUtil2
 * @author liuxing
 *
 */
@SpringBootApplication
public class Application2 {

	@Bean
	public SpringUtil2 springUtil2() {
		return new SpringUtil2();
	}

	public static void main(String[] args) {
		SpringApplication.run(Application2.class, args);
	}
}
